package com.worldcup.service.question;

import com.worldcup.model.question.QuestionMatchResult;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author duwan.zq
 * @date 2019/03/11
 */
public interface QuestionMatchResultService {

    /**
     * 保存匹配结果
     * @param openid
     * @param passiveOpenid
     * @param harmonyScore
     * @param topicScore
     * @param commonIdols
     * @param commonEnemies
     * @param commonMatches
     */
    void insert(String openid, String passiveOpenid, BigDecimal harmonyScore, BigDecimal topicScore,
                List<String> commonIdols, List<String> commonEnemies, List<String> commonMatches);

    /**
     * 获取两人匹配结果
     * @param openid
     * @param passiveOpenid
     * @return
     */
    QuestionMatchResult getMatchResult(String openid, String passiveOpenid);

    /**
     * 获取好友结果排名
     * @param openid
     * @param friendOpenids
     * @return
     */
    List<QuestionMatchResult> getFriendRank(String openid, List<String> friendOpenids);

    /**
     * 可能感兴趣的。随机选取非好友，非已想认识
     * @param openid
     */
    void randomInterest(String openid);

    /**
     * 获取非好友匹配结果
     * @param openid
     * @param friendOpenids
     * @return
     */
    List<QuestionMatchResult> getMatchResultExclude(String openid, List<String> friendOpenids);
}
